A Blame for All (revised)
نویسندگان
چکیده
Several programming languages are beginning to integrate static and dynamic typing, including Racket, Microsoft’s C# 4.0 (Hejlsberg 2010) and TypeScript (Hejlsberg, 2012), Facebook’s PHP (Verlaguet, 2013), and the research languages Sage (Gronski, Knowles, Tomb, Freund, and Flanagan, 2006) and Thorn (Wrigstad, Eugster, Field, Nystrom, and Vitek, 2009). However, an important open question remains, which is how to add parametric polymorphism to languages that combine static and dynamic typing. We present a system that permits a value of dynamic type to be cast to a polymorphic type and vice versa, with relational parametricity enforced by a kind of dynamic sealing along the lines proposed by Matthews and Ahmed (2008) and Neis, Dreyer, and Rossberg (2009). Our development is supported by a variant of the polymorphic lambda calculus that may be of independent interest. It uses type bindings and static casts to maintain a syntactic certificate of parametricity throughout program evaluation. Our system includes a notion of blame, which allows us to show that when casting between a more precise type and a less precise type, any cast failures are due to the less-precisely-typed portion of the program. We also want to show that a cast from a subtype to a supertype cannot fail. This property holds for a relatively weak notion of subtyping (STOP 2009) but we have found a flaw in our proof for the stronger notion of subtyping, which we explain here. Finally, we show that existentials for untyped programs can be encoded in terms of casts through polymorphic types.
منابع مشابه
Cognitive Emotion Regulation Strategies Profile in Students with High and low Interpersonal Sensitivity
The purpose of this study was to compare the cognitive emotion regulation strategies profile in students with high and low interpersonal sensitivity. The descriptive and survey method was used. The statistical population was all undergraduate students of the University of Isfahan in the academic year 2018-2019. According multistage cluster random sampling 314 students were selected as samples ...
متن کاملPersonality Traits, Emotion Regulation and Impulsive Behaviors in Patients with Borderline Personality Disorder
Objective: The purposes of this study were to examine the relationships between personality traits, cognitive emotion regulation strategies and impulsive behaviors of borderline personality disorder, and to explore which personality traits and cognitive emotion regulation strategies can better predict and explain the impulsive behaviors in borderline personality disorder. Methods: This study...
متن کاملThe effectiveness of mindfulness-based education on self-blame and working memory in adolescents
The aim of this study was to investigate the effect of mindfulness-based education on two structures related to cognition, namely self-blame and working memory in adolescents. The research design was quasi-experimental with a control group. Participants included 30 people (two groups of 15 people) from adolescents aged 14 to 18 years who volunteered to participate in the study. They responded t...
متن کاملOn the Representation of Bloom's Revised Taxonomy in Interchange Coursebooks
This study intends to evaluate Interchange series (2005), which are still fundamental coursebooks in the EFL curriculum settings, in terms of learning objectives in Bloom’s Revised Taxonomy (2001) to see which levels of Bloom's Revised Taxonomy were more emphasized in these coursebooks. For this purpose, the contents of Interchange textbooks were codified based on a coding scheme designed by th...
متن کاملProximity Sensors Based Marine Engine Fault Detection using CAN Protocol
Received Nov 21, 2017 Revised Jan 29, 2018 Accepted Feb 17, 2018 This paper talked about an outline and execution assessment of marine motor blame recognition framework by utilising vicinity sensor. A non-linearity can be diminished by using the sensor without expanding the reaction time by applying CANopen convention. The marine motor blame location framework can measures crankshaft deflection...
متن کاملEffect of cognitive behavioral group therapy based on Hofmann model on the reduction of clinical symptoms and improved cognitive emotional regulation firefighters
The purpose of this study was Effect of cognitive behavioral group therapy based on Hofmann model on the reduction of clinical symptoms and improved cognitive emotional regulation firefighters in Alborz Province. This study was a quasi-experimental study That used the pretest - posttest with control group design. The sample included 24 employees, 12 Subjects in the experimental group and 12 Sub...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2014